import { en as runTimeEn } from "@ibiz-template/runtime";
import { en as modelHelperEn } from "@ibiz-template/model-helper";
import { en as coreEn } from "@ibiz-template/core";

export default {
  common: {
    undefined: "undefined",
    onFoundCorrespondingPart:
      "Undefined adapter with no corresponding part found",
    noFoundViewModel: "View model not found",
    noSupportLoadingDynamic:
      "{codeName}No entity, do not support loading dynamic models at this time",
  },
  components: {
    panelComponent: {
      noConfiguardDataObject: "No data object name config",
      noSupportedDataSourceType:
        "The data source type {dataSourceType} is not supported",
      noConfiguredEntityLogic: "No entity logic config",
      noConfiguredEntity: "No entity config",
      noReturnValue: "The entity logic {appDELogicId} has no return value",
      noAttribute: "There is no {dataName} attribute in the global variable.",
      noConfiguredScript: "No javaScript config",
      noConfiguerdEntityBehanior: "No entity behavior config",
      sessionView:
        "The session to which the view is bound does not exist {dataName}",
      viewStateAttribute: "There is no {dataName} attribute in the view state",
      noImplementMethod: "Method not implemented.",
      noProvidedSlot: "No {id} slot provided",
      cannotEmpty: "{caption} cannot be empty",
      unadaptedLayout: "Unadapted layout placeholder {layoutPos}",
      placeholderIdentifier:
        "The placeholder identifier for panel member {id} of view {viewCodeName} is:",
    },
  },
  locale: {
    prompt: "Prompt",
    switchLanguagePrompt:
      "Switching languages requires refreshing the page, are you sure to switch?",
  },
  use: {
    controller: {
      parameterChanges: "Context or view parameter changes for {id}:",
      stateChange: "[{name}] state change",
    },
    focusBlur: {
      noFocus: "No focus, no out-of-focus triggering",
    },
  },
  utils: {
    unauthorizedHandler: {
      noFoundEnvParams: "Unable to find environment parameter casLoginUrl",
    },
    route: {
      noViewIdentity: "There is no view identifier for the {depth} route"
    }
  },

  viewEngine: {
    closeRemind: "Close reminder",
    confirmClosePrompt:
      "The form data has been modified, are you sure you want to close it?",
    noExistVersionErr: "The current workflow version does not exist",
    noFoundFormModel: "Unable to find the model for form {name}",
    missingToolbarModel: "Missing toolbar component model",
    notReceivedPrompt: "No appDataElementId received",
  },

  // runTime
  ...runTimeEn,
  // core
  ...coreEn,
  // modelHelper
  ...modelHelperEn,
};
